package com.itheima.consumer.feign;


import com.itheima.consumer.config.FeignLogConfig;
import com.itheima.consumer.domain.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;



@FeignClient(name="nacos-provider",configuration= FeignLogConfig.class,fallback = GoodsFeignClientFallback.class )
public interface ProviderFeign {

    //远程调用根据id查询goods
    @GetMapping("/goods/findOne/{id}")
    Goods findOne(@PathVariable("id") int id);
}
